home *** CD-ROM | disk | FTP | other *** search
- Path: daily-planet.execpc.com!usenet
- From: innuendo@execpc.com (Jonathan Gapen)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: DataTypes/DTST_Ram Problem
- Date: 25 Mar 1996 23:35:12 GMT
- Organization: esCom Amiga Madison Enthusiast's Organisation
- Message-ID: <4j7ajg$c3i@daily-planet.execpc.com>
- References: <Pine.A32.3.91.960325190020.33946A-100000@asterix.uni-muenster.de>
- NNTP-Posting-Host: mealworm.execpc.com
- Mime-Version: 1.0
- Content-Type: text/plain; charset=iso-8859-1
- Content-Transfer-Encoding: 8bit
- X-NewsSoftware: GRn 2.1 Feb 19, 1994
-
-
- In article <Pine.A32.3.91.960325190020.33946A-100000@asterix.uni-muenster.de> Stefan Tiemann <tiemant@uni-muenster.de> writes:
- > Hi!
- > I want to call NewDTObjectA() with a buffer in ram, so I tried
- > "DTA_SourceType, DTST_Ram", but i does not work (IoErr gives 0, but width,
- > height and depth of the picture is is always 0, too). I tried to give the
- > address of the buffer as "name" and/or as DTA_Handle, but always got
- > the same result.
- > Everything works fine, when I save the buffer to a file and call
- > NewDTObjectA() with the filename in "name" and let DTA_SourceType be the
- > default (DTST_File), but as the picture is included in a bigger file, this
- > does not make much sense... or is it possible to Seek() to the position of
- > the picture and give NewDTObjectA() the FileHandle (my first tests with this
- > failed, too).
- > How do I have to give the address to NewDTObject?
-
- What's the format of the picture you are using? Have you tried any other
- picture formats, to see if they work?
- DTA_SourceType handling is supposed to be done inside the class which
- actually loads the data, like jfif.datatype or 8svx.datatype, usually with a
- switch() statement to choose the correct loading routine. However, I've
- looked at source for quite a number of these classes, and very few of them
- implement DTST_RAM!
- Of course, I've mainly looked at sound sub-classes, but I'd check to make
- sure that the class you're trying to use actually implements DTST_RAM.
-
- --
- Jonathan Gapen (innuendo@execpc.com)
- Bread in, toast out. How does it DO that?
-